package cn.rht.study.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.rht.study.entity.HobbySjzd;
import cn.rht.study.service.IOtherService;
import cn.rht.study.util.JsonResult;

@RequestMapping("other")
@RestController
public class OtherController extends BaseController{
	
	@Autowired
	IOtherService service;
	
	@GetMapping("hobby/list")
	public JsonResult<List<HobbySjzd>> HobbyList(){
		log.info("################################################################");
    	log.info("###                      获取兴趣爱好列表                      ###");
    	log.info("################################################################");
		List<HobbySjzd> list = service.getHobbyList();
		return new JsonResult<List<HobbySjzd>>(SUCCESS,list);
	}
}
